package com.example.demo.pattern.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demo
 * @description: 测试类
 * @author: yby
 * @create: 2020-06-12 17:26
 **/
@RestController
@RequestMapping("/strategy")
public class TestController {

    @Autowired
    private StrategyContext strategyContext;

    @RequestMapping("/test")
    public void test(){
        strategyContext.getResource("ffff");
    }
}
